package com.gitee.wsl.api

interface IndentDepthAble{
    var indentDepth: Int
}

/**
 * Increments [indentDepth], returning its value after incrementing.
 *
 * @return The new indent depth.
 */
fun IndentDepthAble.indent(): Int = ++indentDepth

/**
 * Decrements [indentDepth], returning its value after decrementing.
 *
 * @return The new indent depth.
 */
fun IndentDepthAble.dedent(): Int = --indentDepth